package com.example.springbootvuetest.mapper;

import com.example.springbootvuetest.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springbootvuetest.entity.dto.Quarter;
import com.example.springbootvuetest.entity.dto.TableDto;
import com.example.springbootvuetest.entity.dto.YearData;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author shuoye
 * @since 2023-03-14
 */
@Repository
public interface OrderMapper extends BaseMapper<Order> {
    List<Order> getAllOrder(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    Integer countAllOrder();

    List<Order> getMyOrder(Integer userId);

    List<Order> findOrderByIdleIdList(List<Integer> idleIdList);

    List<TableDto> getMouthData();

    Integer getDayData(Integer id);

    Integer getSumData(Integer id);

    List<YearData> getYearData();

    List<Quarter> getQuarter();
}

